home *** CD-ROM | disk | FTP | other *** search
- Path: surfnet.nl!sun4nl!xs4all!falstaff
- From: falstaff@xs4all.nl (Falstaff)
- Newsgroups: comp.lang.c
- Subject: Re: big problem with a very small program:please help me!
- Date: 11 Mar 1996 23:25:00 GMT
- Organization: XS4ALL, networking for the masses
- Message-ID: <4i2cod$n44@news.xs4all.nl>
- References: <4hqc8p$njh@aldebaran.sct.fr>
- NNTP-Posting-Host: xs1.xs4all.nl
- X-Newsreader: NN version 6.5.0 #666 (NOV)
-
- escali_m@worldnet.net (Marc Escalier) writes:
-
- >#include <stdio.h>
- >#include <math.h>
-
- >main()
- >{
- >float i;
-
- >i=5.25;
- >printf("i is real:l%f\n",i); /* display 5.25000000000000... ok! */
- >printf("i is integer%d\n",i); /* display 0 what does that mean
- >?!?*/
- >return(0);
- >}
-
- >thanx for any help.
- >please answer by email because i don't read often comp.lang.c.
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- Maybe you should.
- Or perhaps try K&R, or any other C language book, especially the
- description of printf().
-
- Frank
- --
- The famous GIICM now on line: http://www.xs4all.nl/~falstaff/GIICM.html
- ------------------------------------------------------------------------
- Frank A. Vorstenbosch +31-(70)-355 5241 falstaff@xs4all.nl
-